const generateMenuTree = (menuTree: any = []) => {
  // 顶部第1个菜单
  menuTree[0] = Object.assign({}, menuTree[0], {
    name: '一级菜单1',
    url: '/feiyong',
    id: 799,
    icon: 'icon-caiwu',
    children: [
      {
        name: '二级菜单1',
        url: '/two-one',
        id: 4,
        icon: 'icon-caiwu',
        children: [
          {
            name: '三级菜单1',
            url: '/organization',
            id: 9901
          },
          {
            name: '三级菜单1-添加',
            url: '/add',
            id: '45',
            hidden: true
          },
          {
            name: '三级菜单1-详情',
            url: '/organization/:id',
            id: '47',
            hidden: true
          }
        ]
      },
      {
        name: '二级菜单2',
        url: '/two-two',
        id: '6',
        icon: 'icon-caiwu',
        children: [
          {
            name: '三级菜单1',
            url: 'https://wwww.baidu.com',
            id: '61',
            icon: 'icon-caiwu'
          }
        ]
      },
      {
        name: '二级菜单3',
        url: 'https://wwww.baidu.com',
        id: 52,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单4',
        url: '/duizhang12/:name',
        id: 53,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单41',
        url: '/duizhang13',
        id: 54,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单5',
        url: '/duizhang14',
        id: 55,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单6',
        url: '/duizhang15',
        id: 56,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单7',
        url: '/duizhang16',
        id: 57,
        icon: 'icon-caiwu'
      }
    ]
  });

  // 顶部第二个菜单
  menuTree[1] = Object.assign({}, menuTree[1], {
    name: '一级菜单2',
    url: '/huoyuan',
    id: 780,
    icon: 'icon-huoyuan',
    children: [
      {
        name: '二级菜单1',
        url: '/two-one',
        id: 5,
        icon: 'icon-huoyuan',
        children: [
          {
            name: '三级菜单1',
            url: '/lixiang',
            id: 990101
          }
        ]
      },
      {
        name: '二级菜单2',
        url: '/duizhang12',
        id: 53,
        icon: 'icon-huoyuan',
        children: [
          {
            name: '三级菜单1',
            url: '/list',
            id: 9
          }
        ]
      },
      {
        name: '二级菜单3',
        url: '/duizhang13',
        id: 54,
        icon: 'icon-huoyuan'
      },
      {
        name: '二级菜单4',
        url: '/duizhang14',
        id: 55,
        icon: 'icon-huoyuan'
      },
      {
        name: '二级菜单5',
        url: '/duizhang15',
        id: 56,
        icon: 'icon-huoyuan'
      },
      {
        name: '二级菜单6',
        url: '/duizhang16',
        id: 57,
        icon: 'icon-huoyuan'
      }
    ]
  });

  // 顶部第三个菜单
  menuTree[2] = Object.assign({}, menuTree[2], {
    name: '一级菜单3',
    url: '/caiwu',
    id: 781,
    icon: 'icon-caiwu',
    children: [
      {
        name: '二级菜单1',
        url: '/list1',
        id: 50,
        icon: 'icon-caiwu'
      },
      {
        name: '二级菜单2',
        url: '/list2',
        id: 51,
        icon: 'icon-caiwu'
      }
    ]
  });

  // 顶部第四个菜单
  menuTree[3] = Object.assign({}, menuTree[3], {
    name: '一级菜单4',
    url: '/tongji',
    id: 789,
    icon: 'icon-tongji',
    children: [
      {
        name: '二级菜单1',
        url: '/tongji1',
        id: 50,
        icon: 'icon-tongji',
        children: [
          {
            name: '三级菜单1',
            url: '/fenxi',
            id: 501
          },
          {
            name: '三级菜单2',
            url: '/fenxi1',
            id: 502
          }
        ]
      },
      {
        name: '二级菜单2',
        url: '/duizhang',
        id: 51,
        icon: 'icon-tongji',
        children: [
          {
            name: '三级菜单11111',
            url: '/qingdan',
            id: 5101
          },
          {
            name: '三级菜单222222',
            url: '/fenbu',
            id: 5102
          }
        ]
      },
      {
        name: '二级菜单3',
        url: '/duizhang11',
        id: 52,
        icon: 'icon-tongji'
      },
      {
        name: '二级菜单4',
        url: '/duizhang12',
        id: 53,
        icon: 'icon-tongji'
      },
      {
        name: '二级菜单4',
        url: '/duizhang13',
        id: 54,
        icon: 'icon-tongji'
      },
      {
        name: '二级菜单5',
        url: '/duizhang14',
        id: 55,
        icon: 'icon-tongji'
      },
      {
        name: '二级菜单6',
        url: '/duizhang15',
        id: 56,
        icon: 'icon-tongji'
      },
      {
        name: '二级菜单7',
        url: '/duizhang16',
        id: 57,
        icon: 'icon-tongji'
      }
    ]
  });

  // 顶部第5个菜单
  menuTree[4] = Object.assign({}, menuTree[4], {
    name: '一级菜单5',
    url: 'https://wwww.baidu.com',
    id: 104,
    icon: 'icon-kefu'
  });

  // 顶部第6个菜单
  menuTree[5] = Object.assign({}, menuTree[5], {
    name: '一级菜单6',
    url: '/yingxiao/:id',
    id: 105,
    icon: 'icon-yingxiao'
  });
  // 顶部第7个菜单
  menuTree[6] = Object.assign({}, menuTree[5], {
    name: '一级菜单7',
    url: 'https://www.baidu.com',
    id: 106,
    icon: 'icon-yingxiao',
    hidden: true
  });
};

export default generateMenuTree;
